import React from 'react'
import {
  Route,
  Redirect,
} from 'react-router-dom'

import Home from '../views/home'
import Solution from '../views/solution'
import CompanyCredit from '../views/company-credit'
import Login from '../views/login'
import About from '../views/about'
import Garden from '../views/garden'
import InvestmentOrg from '../views/investment-org'
import Declaration from '../views/declaration'
import Conference from '../views/conference'
import Activities from '../views/activities'

export default () => [
  <Route path='/' render={() => <Redirect to='/home' />} exact key='index' />,
  <Route path='/login' component={Login} key='login' />,
  <Route path='/home' component={Home} key='home' />,
  <Route path='/solution' component={Solution} key='solution' />,
  <Route path='/company-credit' component={CompanyCredit} key='company-credit' />,
  <Route path='/about' component={About} key='about' />,
  <Route path='/garden' component={Garden} key='garden' />,
  <Route path='/investment-org' component={InvestmentOrg} key='investment-org' />,
  <Route path='/declaration' component={Declaration} key='declaration' />,
  <Route path='/conference' component={Conference} key='conference' />,
  <Route path='/activities' component={Activities} key='activities' />,
]